@extends('layouts.layouts')
@section('title')
    <title>后台首页</title>
    <style>
        .file {
            position: relative;
            display: inline-block;
            background: #D0EEFF;
            border: 1px solid #99D3F5;
            border-radius: 4px;
            padding: 4px 12px;
            overflow: hidden;
            color: #1E88C7;
            text-decoration: none;
            text-indent: 0;
            line-height: 20px;
        }
        .file input {
            position: absolute;
            font-size: 100px;
            right: 0;
            top: 0;
            opacity: 0;
        }
        .file:hover {
            background: #AADFFD;
            border-color: #78C3F3;
            color: #004974;
            text-decoration: none;
        }
        .form-horizontal .form-group {
            margin-right: 5px;
            margin-left: -1px;
        }
    </style>
@endsection
@section('content')
    <style>

        .form-horizontal .form-group {
            margin-right: 5px;
            margin-left: -1px;
        }
    </style>
    <link rel="stylesheet" href="/lib/layer/theme/default/layer.css"/>
    <script type="text/javascript" src="/lib/layer/layer.js"></script>
    <link href="/css/ueditor.css" type="text/css" rel="stylesheet">
    <div class="content">
        <div class="header">
            <ul class="breadcrumb">
                <li><a href="/train/periods">组合期数列表</a>／<a href="#">添加组合课程</a> </li>

            </ul>
        </div>
        <div class="main-content">
            <ul class="nav nav-tabs nav-tabs-course">
                <li role="presentation" class="course_add active"><a href="javascript:void(0);">组合课程添加</a></li>
            </ul>
            <form class="form-horizontal" id="courseFormInfo" action="/train/periods/editPeriods" method="post">
                {{csrf_field()}}
                <input type="hidden" name="id" value="{{$period->id}}"/>
                <div class="course_class row">
                    <div class="col-md-10">
                        <br>
                        <div class="tab-content">
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-3 control-label">期数名称</label>
                                {{csrf_field()}}
                                <div class="col-sm-8">
                                    <input class="form-control" id="inputEmail3" name="name" placeholder="期数名称例如：第一期，第二期" type="text" value="{{$period->name}}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-3 control-label">开班时间</label>
                                <div class="col-sm-9">
                                    <div class="form-inline">
                                        <div class="form-group">
                                            <input type="text" class="form-control" class="startTime" name="startTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH'})" placeholder="用户注册开始时间" value="{{$period->begin_time}}">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            {{--<div class="form-group" style="">--}}
                            {{--<label for="inputEmail3" class="col-sm-3 control-label">组合课程原价</label>--}}
                            {{--<div class="col-sm-8">--}}
                            {{--<input class="form-control" id="inputEmail3" name="price" placeholder="价格" value="" type="text">--}}
                            {{--</div>--}}
                            {{--</div>--}}
                            {{--<div class="form-group" style="">--}}
                            {{--<label for="inputEmail3" class="col-sm-3 control-label">组合课程早鸟价</label>--}}
                            {{--<div class="col-sm-8">--}}
                            {{--<input class="form-control" id="inputEmail3" name="birdPrice" placeholder="价格" value="" type="text">--}}
                            {{--</div>--}}
                            {{--</div>--}}
                        </div>
                    </div>
                    <div class="row">
                        <p>
                            <button type="submit" class="btn btn-primary btn-lg col-md-offset-5" data-id="" style="width:120px;background:#286090;color:#fff;">修改</button>
                        </p>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">选择课程</h4>
                </div>
                <div class="modal-body"></div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    <button type="button" class="btn btn-primary">Save changes</button>
                </div>
            </div>
        </div>
    </div>
    {{--<script src="/js/course.js"></script>--}}
    <script src="/lib/jquery.validate.js" type="text/javascript"></script>
    <script>

    </script>
    <style type="text/css">
        .col-sm-2{
            width:60px;
        }
        .course_content{
            margin-right: -30px;
            margin-left: -30px;
            margin-top:5px;
        }
        .btn-success{
            background-image:none!important;
        }
    </style>
@endsection